<T:ViewBase x:Class="WPFExcelReport.TQOPUNKT02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QOTMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQOPUNKT.QOTMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QOTPNRKRS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQOPUNKT.QOTPNRKRS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QOTPLFDNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQOPUNKT.QOTPLFDNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QOTPSTEP:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQOPUNKT.QOTPSTEP}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QOTLFDNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQOPUNKT.QOTLFDNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QOTNEUB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQOPUNKT.QOTNEUB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QOTNEUD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQOPUNKT.QOTNEUD}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QOTAENB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQOPUNKT.QOTAENB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QOTAEND:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQOPUNKT.QOTAEND}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QOTAENZL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQOPUNKT.QOTAENZL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=QOTARTST:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwQOPUNKT.QOTARTST}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsQOPUNKT,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwQOPUNKT}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwQOPUNKT, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="QOTMANDANT"
                                    Binding="{Binding Path=QOTMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTPNRKRS"
                                    Binding="{Binding Path=QOTPNRKRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTPNRKRS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTPLFDNR"
                                    Binding="{Binding Path=QOTPLFDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTPLFDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTPSTEP"
                                    Binding="{Binding Path=QOTPSTEP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTPSTEP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTLFDNR"
                                    Binding="{Binding Path=QOTLFDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTLFDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTNEUB"
                                    Binding="{Binding Path=QOTNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTNEUD"
                                    Binding="{Binding Path=QOTNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTNEUD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTAENB"
                                    Binding="{Binding Path=QOTAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTAEND"
                                    Binding="{Binding Path=QOTAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTAENZL"
                                    Binding="{Binding Path=QOTAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTARTST"
                                    Binding="{Binding Path=QOTARTST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTARTST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTKUNDNR"
                                    Binding="{Binding Path=QOTKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTWERK"
                                    Binding="{Binding Path=QOTWERK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTWERK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTABT"
                                    Binding="{Binding Path=QOTABT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTABT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTART"
                                    Binding="{Binding Path=QOTART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTVAR"
                                    Binding="{Binding Path=QOTVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTFARBE"
                                    Binding="{Binding Path=QOTFARBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTFARBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTCOLORIT"
                                    Binding="{Binding Path=QOTCOLORIT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTCOLORIT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTDESSIN"
                                    Binding="{Binding Path=QOTDESSIN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTDESSIN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTBESCH"
                                    Binding="{Binding Path=QOTBESCH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTBESCH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTZUSTAND"
                                    Binding="{Binding Path=QOTZUSTAND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTZUSTAND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTGROE"
                                    Binding="{Binding Path=QOTGROE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTGROE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTPRSFE"
                                    Binding="{Binding Path=QOTPRSFE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTPRSFE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTPREINHT"
                                    Binding="{Binding Path=QOTPREINHT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTPREINHT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTEINHEIT"
                                    Binding="{Binding Path=QOTEINHEIT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTEINHEIT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTPRSTK"
                                    Binding="{Binding Path=QOTPRSTK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTPRSTK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTAUFTYP"
                                    Binding="{Binding Path=QOTAUFTYP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTAUFTYP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTAUFKRS"
                                    Binding="{Binding Path=QOTAUFKRS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTAUFKRS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTAUFLFD"
                                    Binding="{Binding Path=QOTAUFLFD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTAUFLFD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTAUFPOS"
                                    Binding="{Binding Path=QOTAUFPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTAUFPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTTP"
                                    Binding="{Binding Path=QOTTP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTTP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTANZEINH"
                                    Binding="{Binding Path=QOTANZEINH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTANZEINH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTANZPR"
                                    Binding="{Binding Path=QOTANZPR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTANZPR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTANZAKT"
                                    Binding="{Binding Path=QOTANZAKT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTANZAKT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTSKIPLOS"
                                    Binding="{Binding Path=QOTSKIPLOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTSKIPLOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTZEILE"
                                    Binding="{Binding Path=QOTZEILE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTZEILE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTSPALTE"
                                    Binding="{Binding Path=QOTSPALTE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTSPALTE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTORDER"
                                    Binding="{Binding Path=QOTORDER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTORDER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTOSTEP"
                                    Binding="{Binding Path=QOTOSTEP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTOSTEP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTORESULT"
                                    Binding="{Binding Path=QOTORESULT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTORESULT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTSRESULT"
                                    Binding="{Binding Path=QOTSRESULT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTSRESULT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTRORDER"
                                    Binding="{Binding Path=QOTRORDER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTRORDER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTRSTEP"
                                    Binding="{Binding Path=QOTRSTEP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTRSTEP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTAFOLGE"
                                    Binding="{Binding Path=QOTAFOLGE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTAFOLGE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="QOTFILLER"
                                    Binding="{Binding Path=QOTFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=QOTFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
